package com.hd.service.personaloffice;

import com.hd.entity.personaloffice.WorkCommentOpinion;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: hzhh123
 * @Date: 2018/12/24 22:51
 * 工作评论
 */
public interface WorkCommentOpinionService {
    Serializable save(WorkCommentOpinion workCommentOpinion);
    void update(WorkCommentOpinion workCommentOpinion);
    void updateOpinion(String id,String opinion);
    WorkCommentOpinion get(String id);
    void delete(String id);

    /**
     * 通过参数删除
     * @param objId
     */
    void deleteByParams(String objId,String type);
    void deleteByParams(String objId,String type,String commentator);

    /**
     * 通过外键查询
     * @param objId
     * @return
     */
    List<WorkCommentOpinion> findByParams(String objId,String type);

    /**
     * 更新定时状态
     * @param objId
     * @param timer
     */
    void updateByObjId(String objId,Integer timer);
}
